(bookmark-show-all-annotations):
authorThien-Thi Nguyen <ttn@gnuvola.org>
Mon, 16 Jul 2007 02:16:00 +0000 (02:16 +0000)
committerThien-Thi Nguyen <ttn@gnuvola.org>
Mon, 16 Jul 2007 02:16:00 +0000 (02:16 +0000)
Make sure each inserted annotation ends with newline.

lisp/bookmark.el

index 75c4826ae0b31fba54c5f04787d5b9244447cba4..5dc783d13d98e3f75fe3bb82d188a94441b817ea 100644 (file)
@@ -1816,7 +1816,8 @@ if an annotation exists."
          (if (and ann (not (string-equal ann "")))
              ;; insert the annotation, indented by 4 spaces.
              (progn
-               (save-excursion (insert ann))
+               (save-excursion (insert ann) (unless (bolp)
+                                              (insert "\n")))
                (while (< (point) (point-max))
                  (beginning-of-line) ; paranoia
                  (insert "    ")